<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

$jige = 75;

$css = 60;
$Js = 70;
$wangye = 70;
$avg = ($css + $Js + $wangye)/3;
?>

<!doctype html>
<html lang="en">
    <head>
    <body>
        <p>abc</p>
        平均分的及格线=<?php echo $jige; ?></br>
        样式表=<?php echo $css ; ?></br>
        网页设计=<?php echo $wangye; ?></br>
        JS=<?php echo $Js ;?></br>
        你的平均分=<?php echo $avg; ?></br>
        你的分数:<?php if($avg >=$jige) : ?>
        <span style="color:green">及格</span>
        <?php else : ?>
        <span style="color:red">不及格</span>
        <?php endif;?>
    </body>
    </head>
